# -*- coding: utf-8 -*-
"""
    @author:sirius
    @time:2017.10.14
"""

from random import choice
import random

WEEK_TAG = ["weekday", "holiday"]
DAY_TAG = ["morning", "afternoon", "night"]
SPEED_TAG = ["static", "walking", "runing", "use transportation"]
APPS = ["Telephone", "screensaver", "EPFLscope", "akncapserver", "Messaging", "Maps", "File manager", "Notes", "Clock", "Web", "Calendar", "photo"]

condition_list = []

for w in WEEK_TAG:
	for d in DAY_TAG:
		for s in SPEED_TAG:
			condition_list.append(w+','+d+','+s)
# print condition_list

data_dict = {}
app_arr_list = []

for x in range(0, 5):
	app_arr = ""
	ran_num = int(random.random()*6)+2
	i = 0
	while i < ran_num:
		app_arr += choice(APPS)+"=>"
		i += 1
	app_arr_list.append(app_arr)
# print app_arr_list

for cl in condition_list:
	item_list = []
	for al in app_arr_list:
		support = random.random()
		item_list.append(al)
		item_list.append(support)
	data_dict[cl] = item_list

print("周期律", data_dict)



